package com.cisdi.echarts.data;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TipData implements Serializable {
    private static final long serialVersionUID = -3295595963653443203L;
    /** 数据名称 **/
    private String name;
    /** 数据是否选中 **/
    private Boolean selected;
    /** 数据最大值 **/
    private Object max;
    /** 数据最下值 **/
    private Object min;
    /** 数据平均值 **/
    private Object avg;
    /** 数据极差值 **/
    private Object range;

    /**
     * 获取name值
     */
    public String name() {
        return this.name;
    }

    /**
     * 设置name值
     *
     * @param name
     * @return this
     */
    public TipData name(String name) {
        this.name = name;
        return this;
    }

    /**
     * 获取selected值
     */
    public Boolean selected() {
        return this.selected;
    }

    /**
     * 设置selected值
     *
     * @param selected
     * @return this
     */
    public TipData selected(Boolean selected) {
        this.selected = selected;
        return this;
    }

    /**
     * 获取max值
     */
    public Object max() {
        return this.max;
    }

    /**
     * 设置max值
     *
     * @param max
     * @return this
     */
    public TipData max(Object max) {
        this.max = max;
        return this;
    }

    /**
     * 获取min值
     */
    public Object min() {
        return this.min;
    }

    /**
     * 设置min值
     *
     * @param min
     * @return this
     */
    public TipData min(Object min) {
        this.min = min;
        return this;
    }

    /**
     * 获取avg值
     */
    public Object avg() {
        return this.avg;
    }

    /**
     * 设置avg值
     *
     * @param avg
     * @return this
     */
    public TipData avg(Object avg) {
        this.avg = avg;
        return this;
    }

    /**
     * 获取range值
     */
    public Object range() {
        return this.range;
    }

    /**
     * 设置range值
     *
     * @param range
     * @return this
     */
    public TipData range(Object range) {
        this.range = range;
        return this;
    }
}
